import ollama

# embed = ollama.embed(model='nomic-embed-text', input='十万个冷笑话')
#
# print(embed)

back = ollama.chat(model='deepseek-r1:1.5b', stream=True, messages=[{'role': '一名律师', 'content': '请问中文回答 买到假货怎么办'}])
for e in back:
    print(e.message.content, end='')
